Optimal. Leaf size=243 \[ \frac{c^2 \sqrt{a^2+2 a b x^2+b^2 x^4} (b c-2 a d) \tanh ^{-1}\left (\frac{\sqrt{d} x}{\sqrt{c+d x^2}}\right )}{16 d^{5/2} \left (a+b x^2\right )}-\frac{c x \sqrt{a^2+2 a b x^2+b^2 x^4} \sqrt{c+d x^2} (b c-2 a d)}{16 d^2 \left (a+b x^2\right )}+\frac{b x^3 \sqrt{a^2+2 a b x^2+b^2 x^4} \left (c+d x^2\right )^{3/2}}{6 d \left (a+b x^2\right )}-\frac{x^3 \sqrt{a^2+2 a b x^2+b^2 x^4} \sqrt{c+d x^2} (b c-2 a d)}{8 d \left (a+b x^2\right )} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.130078, antiderivative size = 243, normalized size of antiderivative = 1., number of steps used = 6, number of rules used = 6, integrand size = 37, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.162, Rules used = {1250, 459, 279, 321, 217, 206} \[ \frac{c^2 \sqrt{a^2+2 a b x^2+b^2 x^4} (b c-2 a d) \tanh ^{-1}\left (\frac{\sqrt{d} x}{\sqrt{c+d x^2}}\right )}{16 d^{5/2} \left (a+b x^2\right )}-\frac{c x \sqrt{a^2+2 a b x^2+b^2 x^4} \sqrt{c+d x^2} (b c-2 a d)}{16 d^2 \left (a+b x^2\right )}+\frac{b x^3 \sqrt{a^2+2 a b x^2+b^2 x^4} \left (c+d x^2\right )^{3/2}}{6 d \left (a+b x^2\right )}-\frac{x^3 \sqrt{a^2+2 a b x^2+b^2 x^4} \sqrt{c+d x^2} (b c-2 a d)}{8 d \left (a+b x^2\right )} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 1250
Rule 459
Rule 279
Rule 321
Rule 217
Rule 206
Rubi steps
\begin{align*} \int x^2 \sqrt{c+d x^2} \sqrt{a^2+2 a b x^2+b^2 x^4} \, dx &=\frac{\sqrt{a^2+2 a b x^2+b^2 x^4} \int x^2 \left (a b+b^2 x^2\right ) \sqrt{c+d x^2} \, dx}{a b+b^2 x^2}\\ &=\frac{b x^3 \left (c+d x^2\right )^{3/2} \sqrt{a^2+2 a b x^2+b^2 x^4}}{6 d \left (a+b x^2\right )}-\frac{\left (b (b c-2 a d) \sqrt{a^2+2 a b x^2+b^2 x^4}\right ) \int x^2 \sqrt{c+d x^2} \, dx}{2 d \left (a b+b^2 x^2\right )}\\ &=-\frac{(b c-2 a d) x^3 \sqrt{c+d x^2} \sqrt{a^2+2 a b x^2+b^2 x^4}}{8 d \left (a+b x^2\right )}+\frac{b x^3 \left (c+d x^2\right )^{3/2} \sqrt{a^2+2 a b x^2+b^2 x^4}}{6 d \left (a+b x^2\right )}-\frac{\left (b c (b c-2 a d) \sqrt{a^2+2 a b x^2+b^2 x^4}\right ) \int \frac{x^2}{\sqrt{c+d x^2}} \, dx}{8 d \left (a b+b^2 x^2\right )}\\ &=-\frac{c (b c-2 a d) x \sqrt{c+d x^2} \sqrt{a^2+2 a b x^2+b^2 x^4}}{16 d^2 \left (a+b x^2\right )}-\frac{(b c-2 a d) x^3 \sqrt{c+d x^2} \sqrt{a^2+2 a b x^2+b^2 x^4}}{8 d \left (a+b x^2\right )}+\frac{b x^3 \left (c+d x^2\right )^{3/2} \sqrt{a^2+2 a b x^2+b^2 x^4}}{6 d \left (a+b x^2\right )}+\frac{\left (b c^2 (b c-2 a d) \sqrt{a^2+2 a b x^2+b^2 x^4}\right ) \int \frac{1}{\sqrt{c+d x^2}} \, dx}{16 d^2 \left (a b+b^2 x^2\right )}\\ &=-\frac{c (b c-2 a d) x \sqrt{c+d x^2} \sqrt{a^2+2 a b x^2+b^2 x^4}}{16 d^2 \left (a+b x^2\right )}-\frac{(b c-2 a d) x^3 \sqrt{c+d x^2} \sqrt{a^2+2 a b x^2+b^2 x^4}}{8 d \left (a+b x^2\right )}+\frac{b x^3 \left (c+d x^2\right )^{3/2} \sqrt{a^2+2 a b x^2+b^2 x^4}}{6 d \left (a+b x^2\right )}+\frac{\left (b c^2 (b c-2 a d) \sqrt{a^2+2 a b x^2+b^2 x^4}\right ) \operatorname{Subst}\left (\int \frac{1}{1-d x^2} \, dx,x,\frac{x}{\sqrt{c+d x^2}}\right )}{16 d^2 \left (a b+b^2 x^2\right )}\\ &=-\frac{c (b c-2 a d) x \sqrt{c+d x^2} \sqrt{a^2+2 a b x^2+b^2 x^4}}{16 d^2 \left (a+b x^2\right )}-\frac{(b c-2 a d) x^3 \sqrt{c+d x^2} \sqrt{a^2+2 a b x^2+b^2 x^4}}{8 d \left (a+b x^2\right )}+\frac{b x^3 \left (c+d x^2\right )^{3/2} \sqrt{a^2+2 a b x^2+b^2 x^4}}{6 d \left (a+b x^2\right )}+\frac{c^2 (b c-2 a d) \sqrt{a^2+2 a b x^2+b^2 x^4} \tanh ^{-1}\left (\frac{\sqrt{d} x}{\sqrt{c+d x^2}}\right )}{16 d^{5/2} \left (a+b x^2\right )}\\ \end{align*}
Mathematica [A] time = 0.176697, size = 142, normalized size = 0.58 \[ \frac{\sqrt{\left (a+b x^2\right )^2} \sqrt{c+d x^2} \left (\sqrt{d} x \sqrt{\frac{d x^2}{c}+1} \left (6 a d \left (c+2 d x^2\right )+b \left (-3 c^2+2 c d x^2+8 d^2 x^4\right )\right )+3 c^{3/2} (b c-2 a d) \sinh ^{-1}\left (\frac{\sqrt{d} x}{\sqrt{c}}\right )\right )}{48 d^{5/2} \left (a+b x^2\right ) \sqrt{\frac{d x^2}{c}+1}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.012, size = 159, normalized size = 0.7 \begin{align*}{\frac{1}{48\,b{x}^{2}+48\,a}\sqrt{ \left ( b{x}^{2}+a \right ) ^{2}} \left ( 8\,{d}^{3/2} \left ( d{x}^{2}+c \right ) ^{3/2}{x}^{3}b+12\,{d}^{3/2} \left ( d{x}^{2}+c \right ) ^{3/2}xa-6\,\sqrt{d} \left ( d{x}^{2}+c \right ) ^{3/2}xbc-6\,{d}^{3/2}\sqrt{d{x}^{2}+c}xac+3\,\sqrt{d}\sqrt{d{x}^{2}+c}xb{c}^{2}-6\,\ln \left ( \sqrt{d}x+\sqrt{d{x}^{2}+c} \right ) a{c}^{2}d+3\,\ln \left ( \sqrt{d}x+\sqrt{d{x}^{2}+c} \right ) b{c}^{3} \right ){d}^{-{\frac{5}{2}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \sqrt{d x^{2} + c} \sqrt{{\left (b x^{2} + a\right )}^{2}} x^{2}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.94447, size = 475, normalized size = 1.95 \begin{align*} \left [-\frac{3 \,{\left (b c^{3} - 2 \, a c^{2} d\right )} \sqrt{d} \log \left (-2 \, d x^{2} + 2 \, \sqrt{d x^{2} + c} \sqrt{d} x - c\right ) - 2 \,{\left (8 \, b d^{3} x^{5} + 2 \,{\left (b c d^{2} + 6 \, a d^{3}\right )} x^{3} - 3 \,{\left (b c^{2} d - 2 \, a c d^{2}\right )} x\right )} \sqrt{d x^{2} + c}}{96 \, d^{3}}, -\frac{3 \,{\left (b c^{3} - 2 \, a c^{2} d\right )} \sqrt{-d} \arctan \left (\frac{\sqrt{-d} x}{\sqrt{d x^{2} + c}}\right ) -{\left (8 \, b d^{3} x^{5} + 2 \,{\left (b c d^{2} + 6 \, a d^{3}\right )} x^{3} - 3 \,{\left (b c^{2} d - 2 \, a c d^{2}\right )} x\right )} \sqrt{d x^{2} + c}}{48 \, d^{3}}\right ] \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.10844, size = 211, normalized size = 0.87 \begin{align*} \frac{1}{48} \,{\left (2 \,{\left (4 \, b x^{2} \mathrm{sgn}\left (b x^{2} + a\right ) + \frac{b c d^{3} \mathrm{sgn}\left (b x^{2} + a\right ) + 6 \, a d^{4} \mathrm{sgn}\left (b x^{2} + a\right )}{d^{4}}\right )} x^{2} - \frac{3 \,{\left (b c^{2} d^{2} \mathrm{sgn}\left (b x^{2} + a\right ) - 2 \, a c d^{3} \mathrm{sgn}\left (b x^{2} + a\right )\right )}}{d^{4}}\right )} \sqrt{d x^{2} + c} x - \frac{{\left (b c^{3} \mathrm{sgn}\left (b x^{2} + a\right ) - 2 \, a c^{2} d \mathrm{sgn}\left (b x^{2} + a\right )\right )} \log \left ({\left | -\sqrt{d} x + \sqrt{d x^{2} + c} \right |}\right )}{16 \, d^{\frac{5}{2}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]